package com.ypc.user2.dao;

import com.ypc.user2.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from user")
    List<User> getAllUser();

    @Select("select * from user where uid = #{uid}")
    User isUserAvailable(@Param("uid") Long uid);
}
